for i in range(0,3,1):
    name = input("your username:")
    passwd = input("passwd:")
    if name == "andy":
        if passwd == "Ap1128":
            print("login success. ")
            break
        else:
            print("your password incorrect.")
    else:
        print("your username incorrect.")
